package net.livingflow.web.model;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * @author xueqiang.mi
 * @since 2010-12-18
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LivingFlow", propOrder = { "users", "packs" })
public class LivingFlow {

	@XmlElement(name = "account")
	private List<XMLUser> users;
	@XmlElement(name = "pack")
	protected List<XMLPack> packs;

	public List<XMLPack> getPacks() {
		if (packs == null) {
			packs = new ArrayList<XMLPack>();
		}
		return packs;
	}

	public List<XMLUser> getUsers() {
		if (users == null) {
			users = new ArrayList<XMLUser>();
		}
		return users;
	}

	public void setPacks(List<XMLPack> packs) {
		this.packs = packs;
	}

	public void setUsers(List<XMLUser> users) {
		this.users = users;
	}

	@Override
	public String toString() {
		return "LivingFlow [packs=" + packs + ", users=" + users + "]";
	}
}
